from django.shortcuts import render
from django.http import HttpResponse
import requests


# Create your views here.
def vo(request):
    return HttpResponse('void message')


def getDefault(request):
    text = requests.get('http://127.0.0.1:8000/')
    return HttpResponse('return message:' + str(text))


def getItems(request):
    text = requests.get('http://127.0.0.1:8000/items/996')
    print(text.text)
    return HttpResponse('return message:' + str(text.text))